//
//  SRSchoolClassServices.h
//  StoryShow
//
//  Created by CyonLeuMBP on 2017/7/20.
//  Copyright © 2017年 qudiandu.cn. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SRClassConstants.h"

@interface SRSchoolClassServices : NSObject

/*
 *  查询作品列表
 */
+ (void)queryWorkListPage:(NSInteger)page groupID:(NSString *)groupID userType:(SRSchoolClassUserType)userType successBlock:(FZSuccessBlock)successBlock failureBlock:(FZFailureBlock)failureBlock ;

/*
 *  查询班级列表
 */
+ (void)queryClassListUserType:(SRSchoolClassUserType)userType successBlock:(FZSuccessBlock)successBlock failureBlock:(FZFailureBlock)failureBlock;

/*
 *  查询班级详情
 */
+ (void)queryClassDetailGroupID:(NSString *)groupID successBlock:(FZSuccessBlock)successBlock failureBlock:(FZFailureBlock)failureBlock;


/*
 *  查询班级成员列表
 */
+ (void)queryClassMemberListPage:(NSInteger)page groupID:(NSString *)groupID successBlock:(FZSuccessBlock)successBlock failureBlock:(FZFailureBlock)failureBlock;


/*
 *  删除班级成员
 */
+ (void)deleteClassMemberGroupID:(NSString *)groupID delUIDs:(NSString *)uids successBlock:(FZSuccessBlock)successBlock failureBlock:(FZFailureBlock)failureBlock;


/*
 *  添加班级任务
 */
+ (void)addTaskGroupID:(NSString *)groupID bookID:(NSString *)bookID catalogueID:(NSString *)catalogueID successBlock:(FZSuccessBlock)successBlock failureBlock:(FZFailureBlock)failureBlock;

/*
 *  删除任务
 */
+ (void)deleteTaskGroupID:(NSString *)groupID taskID:(NSString *)taskID successBlock:(FZSuccessBlock)successBlock failureBlock:(FZFailureBlock)failureBlock;

/*
 * 老师端任务完成列表
 */
+ (void)queryTaskFinishListGroupID:(NSString *)groupID taskID:(NSString *)taskID type:(SRClassHomeworkType)type successBlock:(FZSuccessBlock)successBlock failureBlock:(FZFailureBlock)failureBlock;

/*
 * 老师端题库完成列表
 */
+ (void)queryQuestionFinishListGroupID:(NSString *)groupID taskID:(NSString *)taskID successBlock:(FZSuccessBlock)successBlock failureBlock:(FZFailureBlock)failureBlock;
/*
 *  作业点评
 */
+ (void)addShowCommentShowID:(NSString *)showID comment:(NSString *)comment  type:(SRClassHomeworkType)type finishID:(NSString *)finishID successBlock:(FZSuccessBlock)successBlock failureBlock:(FZFailureBlock)failureBlock;


/*
 *  作业点评
 */
+ (void)addHomeworkCommentWithParams:(NSDictionary *)params successBlock:(FZSuccessBlock)successBlock failureBlock:(FZFailureBlock)failureBlock;

/*
 *  催作业
 */
+ (void)TaskRemindGroupID:(NSString *)groupID taskID:(NSString *)taskID successBlock:(FZSuccessBlock)successBlock failureBlock:(FZFailureBlock)failureBlock;


/*
 *  创建班级
 */
+ (void)createClassWithSchoolName:(NSString *)school_name grade:(NSString *)grade className:(NSString *)className phone:(NSString *)telephone  successBlock:(FZSuccessBlock)successBlock failureBlock:(FZFailureBlock)failureBlock;


/*
 *  创建班级
 */
+ (void)addClassWithNickname:(NSString *)nickname code:(NSString *)code successBlock:(FZSuccessBlock)successBlock failureBlock:(FZFailureBlock)failureBlock;
/*
 *  查询消息红点
 */
+ (void)queryLatestMessageSuccessBlock:(FZSuccessBlock)successBlock failureBlock:(FZFailureBlock)failureBlock;

#pragma mark - Task Question List

/*
 *  题库任务详情
 */
+ (void)queryProblemDetailWithTaskID:(NSString *)taskID SuccessBlock:(FZSuccessBlock)successBlock failureBlock:(FZFailureBlock)failureBlock;

/*
 *  题库任务完成详情
 */
+ (void)queryProblemFinishDetailWithFinishID:(NSString *)finishID SuccessBlock:(FZSuccessBlock)successBlock failureBlock:(FZFailureBlock)failureBlock;

/*
 *  题库任务提交
 */
+ (void)submitProblemAnswerWithTaskID:(NSString *)taskID
                              groupID:(NSString *)groupID
                               answer:(NSString *)answer
                         SuccessBlock:(FZSuccessBlock)successBlock
                         failureBlock:(FZFailureBlock)failureBlock;

/*
 *  题库任务详情
 */
+ (void)queryProblemDetailWithFinishID:(NSString *)finish_id SuccessBlock:(FZSuccessBlock)successBlock failureBlock:(FZFailureBlock)failureBlock;
@end
